| GUI Help > Special > setDrawingColor | ||||||||||||||
|
setDrawingColor |
||||||||||||||
| setDrawingColor handle gadget, DWORD lineColour, DWORD fillColour, DWORD textColour | ||||||||||||||
|
Description: Sets the 3 different drawing colours which a canvas gadget uses when drawing shapes using drawLine, drawRect, drawEllipse or drawText. Set any of the parameters to 0 for the colour black. The colours can be created using the RGB command, eg for a red outline, green fill and black text: setDrawingColor rgb(255,0,0),rgb(0,255,0),0 |
||||||||||||||
|
Return Value: |
||||||||||||||
| Parameters: | ||||||||||||||
|
||||||||||||||
| Remarks:
setDrawingColor is quite fast, unlike DBPro's INK command, you can change it often in a loop without affecting performance. |
||||||||||||||
| See Also:
|
||||||||||||||
|
Example: (Note: You will need to include the GUI constants file for this example to work) |